package com.ym.medical.domain.param;

import com.ym.common.constant.BeanCovert;
import static com.ym.common.constant.ValidRule.Add;
import static com.ym.common.constant.ValidRule.Update;
import com.ym.medical.domain.entity.DoctorVideoSettingEntity;
import com.ym.common.annotations.CustomConstraint;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * 医生视频咨询设置对象 doctor_video_setting
 *
 * @author ym
 * @date 2020-09-14
 */
@ApiModel("医生视频咨询设置-修改")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DoctorVideoSettingUpdateParam extends BeanCovert<DoctorVideoSettingEntity>{

    @ApiModelProperty("主键")
    @NotNull(message = "主键不能为空", groups = {Add.class, Update.class})
    private Long id;

    @ApiModelProperty("医生服务项主键")
    private Long docServId;

    @ApiModelProperty("星期")
    @Size(max = 2, message = "星期长度超过{max}", groups = {Add.class, Update.class})
    private String dpsWeek;

    @ApiModelProperty("预约时间开始")
    private Date appointTimeStart;

    @ApiModelProperty("预约时间结束")
    private Date appointTimeEnd;

    @ApiModelProperty("是否启用")
    @NotEmpty(message = "是否启用不能为空", groups = {Add.class, Update.class})
    @Size(max = 2, message = "是否启用长度超过{max}", groups = {Add.class, Update.class})
    private String theUse;

    @ApiModelProperty("总计预约时长(分)")
    private Integer minTotal;

    @ApiModelProperty("创建时间(生效时间)")
    @NotNull(message = "创建时间不能为空", groups = Add.class)
    private Date createTime;

}
